//引入 请求头
// import {baseUrl} from "../https.js"
// 轮播
function lunbo(){
	return uni.request({
		url:`/www/api/home/banner?type=m&local_code=10&order=weight&limit=6`,
	
		method:"GET",
		
		
	})
}
// 大触直播
function zhibo(){
	return uni.request({
		url:`/www/api/daniu?link=paging&live=3&is_live=1&limit=3&page=1`,
		method:"GET",
		
		
	})
}
// 热门教程
function jiaocheng(){
	return uni.request({
		url:`/www/api/home/series`,
		method:"GET",
		
		
	})
}
// 文图教程
function wentu(){
	return uni.request({
		url:`/www/api/home/graphic-tutorials`,
		method:"GET",
		
		
	})
}
// 推荐咨询
function zixun(){
	return uni.request({
		url:`/www/api/home/news`,
		method:"GET",
		
		
	})
}
//详情页
function xqy(yema,ids,zimu){
	if (ids==1) {
		return uni.request({
		url:`/www/api/series?page=${yema}&software=0&recommend=${ids}&free=${zimu}`,
		method:"GET",
		
		
	})
	} else{
		return uni.request({
			url:`/www/api/series?page=${yema}&software=0`,
			method:"GET",
			
			
		})
	}
	
}
// series?page=1&software=0&recommend=1&free=Y
export default{
	
	lunbo,
	zhibo,
	jiaocheng,
	wentu,
	zixun,
	xqy
}